!!!
%html
  %head
    %meta{"http-equiv"=>"content-type", :content=>"text/html; charset='utf-8'"}/
    %meta{:name=>"keywords", :content=> @settings.keywords.to_s}/
    %title
      =h @settings.title
      =h controller.action_name
    %link{:rel=>"alternate", :type=>"application/rss+xml", :href=>"media/rss"}/
    = theme_stylesheet_link_tag "niftyCorners.css"
    = theme_stylesheet_link_tag "red"
    = javascript_include_tag :defaults
    = theme_javascript_include_tag 'niftycube.js'
  %body
    %script{:type=>"text/javascript"}
      window.onload=function(){
      Nifty("div#all","big");
      Nifty("div#header","big transparent");
      }
    #all
      #header
        .title
          =link_to(h(@settings.title),url_for(:controller=>"media"))
        .subtitle
          =h @settings.subtitle
        #searchplugin  
          = render_component(:controller => 'plugin/search',:action =>'show')
        %a.mini{:onclick=>"Element.toggle('menu')",:href=>"#"}
          = _("More...")
      #menu{:style=>"display:none;"}
        - if session[:user]!=nil
          = render_component(:controller => 'admin/menu',:action =>'show')
        - @exts=Extplugin.find(:all,:conditions=>["activated=1 and name != 'search'"],:order=>"`extplugins`.`order` ASC")
        - for item in @exts
          = render_component(:controller => 'plugin/'+item.name.to_s,:action =>'show')
      #content
        = @content_for_layout
      #footer
        %a{:onclick=>"new Effect.ScrollTo('all'); return false",:href=>"#"}
          = theme_image_tag("arrow_up.png",:alt=>"top",:border=>0)
        = link_to theme_image_tag("mandarina.png",:alt=>"mandarina code",:border=>0),"http://code.google.com/p/mandarinablog/"
        %a{:href=>"/media/rss"}= theme_image_tag("feed.png",:alt=>"rss 2.0",:border=>0) 
        %a{:href=>"http://www.famfamfam.com/lab/icons/silk/"}= theme_image_tag("images.png",:alt=>"famfamfam",:border=>0) 
        %a{:href=>"http://validator.w3.org/check?uri=referer"}
          = image_tag("valid-xhtml10.png",:alt=>"Valid XHTML 1.0 Transitional",:height=>"16",:align=>"bottom",:border=>0)
